#include <iostream>
#include <utility>
#include <assert.h>

#include "lambda/lambda.hpp"

using namespace night::lambda;

int main ()
{
	int i=1, j=2;

	std::pair<int,int> p;
	fun (x,y,z) [ x = pair[y,z] ] (p,i,j);
	assert ( p == std::make_pair (i,j) );
	fun (x,y,z) [ first [x] = y+z ] (p,i,j);
	assert ( p.first == i+j );

}

